import request from '@/utils/request'


export const getList = (current, size, params) => {
  return request({
    url: '/system/user/agent/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    },
  });
};


export const remove = userIds => {
  return request({
    url: `/system/user/${userIds}`,
    method: 'delete',
  });
};

export const update = row => {
  return request({
    url: `/system/user`,

    method: 'put',
    data: row,
  });
};
export const save = row => {
  return request({
    url: `/system/user/agent/add`,
    method: 'post',
    data: row,
  });
};
export const updateAngent = row => {
  return request({
    url: `/jumpcliuser/update-agent`,
    method: 'post',
    data: row,
  });
};
export const resetPassword = row => {
  return request({
    url: `/system/user/agent/reset-password`,
    method: 'post',
    data: row,
  });
};
